#pragma once
#ifndef SOUND_H
#define SOUND_H

#include <vector>
#include <string>

using namespace std;
enum eIndexSound
{
	eSoundImpact,
	eSoundExplosion,
	eSoundFireball,
	eSoundEnemyShoot,
	eSoundExplosionBoss
};
enum eVolume
{
	eVolumeLow,
	eVolumeMedium,
	eVolumeHigh
};
class CSound
{
private:
	static CSound* instance;
	vector<int> vectorSound;
	bool enableSound;
	bool errorSound;

protected:
	CSound(void);
	~CSound(void);
	

public:
	static CSound& CSound::getInstance(void);
	void CSound::Close(void);
	bool CSound::loadSound(string filename);
	void CSound::playSound(int index, int volume);
	void CSound::stopSound(int index);

	bool CSound::getEnableSound(void)const;

	void CSound::setEnableSound( bool enableSound);
};
#define SOUND CSound::getInstance()

#endif
